﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListPostcode.ascx.cs" Inherits="Pantry.Web.Users.Controls.ListPostcode" %>
<%@ Register TagPrefix="cc1" Namespace="SiteUtils" Assembly="CollectionPager" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<Triggers>
    <asp:AsyncPostBackTrigger ControlID="CollectionPager" EventName="Click"/>
    <asp:AsyncPostBackTrigger ControlID="ButtonSelect" EventName="Click"/>
    <asp:AsyncPostBackTrigger ControlID="ButtonClose" EventName="Click"/>
</Triggers>
<ContentTemplate>
<div class="widget_contents noPadding ">
    <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper" role="grid">
        <div class="dtTables">
            <table  class="tables noObOLine dataTable">
                <thead>
                    <tr role="row">
                        <th style="width: 5%">
                            
                        </th>
                        <th>
                            PostCode
                        </th>
                        <th>
                            Town Name
                        </th>
                    </tr>
                </thead>
                <tbody aria-relevant="all" aria-live="polite" role="alert">
                    <asp:Repeater ID="RepeaterBusiness" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <input type="radio" name="RadioPostcode" class="simple_form" value="<%#Eval("Postcode") %>$<%#Eval("TownName") %>$<%#Eval("CountyName") %>$<%#Eval("CountryId") %>"/>
                                </td>
                                <td>
                                    <%#Eval("Postcode")%>
                                </td>
                                <td>
                                    <%#Eval("TownName")%>
                                </td>
                            </tr>
                        </ItemTemplate>                                
                    </asp:Repeater>
                </tbody>
            </table>
        </div>
        <div class="dtBottom">
            <div class="dtInfo">
                <div class="dtPagination">
                    <div>
                        <asp:Button ID="ButtonSelect" runat="server" Text="Select" CssClass="simple_buttons" OnClick="ButtonSelectClick" />
                        &nbsp;
                        <asp:Button ID="ButtonClose" runat="server" Text="Close" CssClass="simple_buttons" OnClientClick="ClosePostcodePopup();" />
                    </div>
                </div>
            </div>
            <div class="dtPagination">
                <cc1:CollectionPager ID="CollectionPager" runat="server" BackText="Back" FirstText="First"
                    ShowLabel="False" ShowFirstLast="False" NextText="Next" ResultsLocation="None" PagingMode="PostBack"
                    PageNumbersSeparator="">
                </cc1:CollectionPager>
            </div>
        </div>
    </div>
    </div>
</ContentTemplate></asp:UpdatePanel>